#!/usr/bin/python3.8.9
# -*- coding: utf-8 -*-

# @Author  : Tina Yu
# @Time    : 2021-7-21 21:08
"""
存储数据
"""
import json

# json文件存储数据
numbers = [2, 3, 5, 7, 9, 4, 6]
filename = 'numbers.json'
with open(filename, 'w') as f:
    json.dump(numbers, f)

# 读取json文件
with open(filename) as f:
    numbers = json.load(f)
print(numbers)
